package com.ruoyi.pims.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 库存概览对象 ry_stock_overview
 * 
 * @author ruoyi
 * @date 2025-06-18
 */
public class RyStockOverview extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 概览ID */
    private Long overviewId;

    /** 快照时间 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "快照时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date snapshotTime;

    /** SKU总数 */
    @Excel(name = "SKU总数")
    private Long totalSku;

    /** 库存总值 */
    @Excel(name = "库存总值")
    private BigDecimal totalValue;

    /** 周转天数 */
    @Excel(name = "周转天数")
    private BigDecimal turnoverDays;

    /** 预警商品数 */
    @Excel(name = "预警商品数")
    private Long warningItems;

    public void setOverviewId(Long overviewId) 
    {
        this.overviewId = overviewId;
    }

    public Long getOverviewId() 
    {
        return overviewId;
    }

    public void setSnapshotTime(Date snapshotTime) 
    {
        this.snapshotTime = snapshotTime;
    }

    public Date getSnapshotTime() 
    {
        return snapshotTime;
    }

    public void setTotalSku(Long totalSku) 
    {
        this.totalSku = totalSku;
    }

    public Long getTotalSku() 
    {
        return totalSku;
    }

    public void setTotalValue(BigDecimal totalValue) 
    {
        this.totalValue = totalValue;
    }

    public BigDecimal getTotalValue() 
    {
        return totalValue;
    }

    public void setTurnoverDays(BigDecimal turnoverDays) 
    {
        this.turnoverDays = turnoverDays;
    }

    public BigDecimal getTurnoverDays() 
    {
        return turnoverDays;
    }

    public void setWarningItems(Long warningItems) 
    {
        this.warningItems = warningItems;
    }

    public Long getWarningItems() 
    {
        return warningItems;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("overviewId", getOverviewId())
            .append("snapshotTime", getSnapshotTime())
            .append("totalSku", getTotalSku())
            .append("totalValue", getTotalValue())
            .append("turnoverDays", getTurnoverDays())
            .append("warningItems", getWarningItems())
            .toString();
    }
}
